﻿@using CommandLib
@using Resources
@model FindArtInfo.Models.PageArtLinksSearchResultModel
@{
    ViewBag.Title = "Result";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h1 class="underline">Art directory</h1>
<p class="below" align="right">    
    <a href="~/@Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE))/home.html">@Multi.PageArtLinkSearchResultBack</a>
</p>
<h2>
    @if (string.IsNullOrEmpty(Model.KeyWord) && string.IsNullOrEmpty(Model.Country) && !string.IsNullOrEmpty(Model.Cate))
    {
        <span>@string.Format(Multi.PageArtLinkSearchResultMessage2, Model.Cate)</span>
    }
    else
    {
        <span>@string.Format(Multi.PageArtLinkSearchResultMessage1, Model.KeyWord, Model.Cate, Model.Country)</span>
    }
</h2>
<a href="~/@Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE))/submit-your-site.html">@Multi.PageArtLinkSearchResultSubmitSite</a>
<br /> 
<br />
<table border="0" cellpadding="0" cellspacing="0">
    <tr valign="top">
        <td>                      
			<table width='100%' cellspacing='0' cellpadding='3' align='center'>			
			    @if (Model.ListArtLinks != null && Model.ListArtLinks.Count > 0)
                {
                    foreach (var item in Model.ListArtLinks)
                    {            							
					    <tr onmouseover="this.style.backgroundColor='#EEEEEE'" onmouseout="this.style.backgroundColor='#FFFFFF'">
                            <td valign=top width='78%'>                                
                                <b>@Html.ActionLink(item.Navn, null, null, null, new { @target = "_blank", @href = item.URL})</b>
                                <br>@item.Beskrivelse
                            </td>				
                            <td valign=top align=right width='22%'></td>
					    </tr>				
                    }
                }
                else
                {							
				    <tr><td align=center width='100%' colspan='2'>@Multi.PageArtLinkSearchResultNoMatchFound</td></tr>                
                }			
			    <tr><td align='right' colspan='2'></td></tr>
            </table>				
		</td>
        <td>
        </td>
    </tr>             
</table>
<p align="right" class="below">
    <a href="~/@Utils.GetUrlByLanguage(CookiesStore.GetCookies(Constants.Cookie.COOKIE_LANGUAGE))/home.html">@Multi.PageArtLinkSearchResultBack</a><br>
</p>
